package com.dqhl.community.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.dqhl.community.R;
import com.dqhl.community.base.BaseFragment;

/**
 * Created by cheng on 2016/9/7.
 * 健康档案
 * 无用，可删除
 */
public class HealthyFileFragment extends BaseFragment {

    public static final String BUNDLE_TITLE = "title";
    private String mTitle = "DefaultValue";

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        Bundle arguments = getArguments();
        if (arguments != null) {
            mTitle = arguments.getString(BUNDLE_TITLE);
        }

        View view = inflater.inflate(R.layout.fragment_healthy_file, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        ListView lvHealthyFile = (ListView) view.findViewById(R.id.lv_healthy_file);
//        HealthyFilelistAdapter healthyFilelistAdapter = new HealthyFilelistAdapter(getContext());
//        lvHealthyFile.setAdapter(healthyFilelistAdapter);
    }

    public static HealthyFileFragment newInstance(String title) {
        Bundle bundle = new Bundle();
        bundle.putString(BUNDLE_TITLE, title);
        HealthyFileFragment fragment = new HealthyFileFragment();
        fragment.setArguments(bundle);
        return fragment;
    }
}
